package com.echo.code.thread.mode.worker;

/**
 * ConcreteWork Created by baiyap on 2018/9/24.
 */
public class ConcreteWork extends Work {

  private final int workID;

  public ConcreteWork(int workID) {
    this.workID = workID;
  }

  @Override
  protected void firstPhaseWork() {
    System.out.println("execute the " + workID + " first work...");
  }

  @Override
  protected void secondPhaseWork() {
    System.out.println("execute the " + workID + " second work...");
  }
}
